// import { adminMenu } from '../../api/menu'
import { testApi } from '../../api/testApi'

const state = {
  test: null
}

const mutations = {
  SET_TEST: (state, payload) => { state.test = { ...state.test, ...payload } } // 更新参数
  // SET_bank_List: (state, payload) => { state.bank_List = payload }
}

const actions = {
  test ({ commit }) {
    return new Promise((resolve, reject) => {
      testApi().then(res => {
        if (res.success) {
          commit('SET_TEST', res.data)
        }
        resolve(res)
      })
    })
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
